home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 10649 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: dispatch.news.demon.net!demon!polo!john
  2. From: john@polo.demon.co.uk (John Winters)
  3. Newsgroups: comp.unix.questions,comp.lang.c
  4. Subject: Re: Bold ASCII
  5. Date: Mon, 18 Mar 1996 18:35:36 GMT
  6. Organization: Wallingford
  7. Message-ID: <DoH7nD.JFn@polo.demon.co.uk>
  8. References: <4i7cpj$hqa@nexen.nexen.com> <4ih7l2$ds@zeus.tcp.co.uk>
  9. X-NNTP-Posting-Host: polo.demon.co.uk
  10.  
  11. In article <4ih7l2$ds@zeus.tcp.co.uk>,
  12. Michael Tendler  <tendler@tcp.co.uk> wrote:
  13. >mdoar@acton.timeplex.com (Matthew B. Doar) wrote:
  14. >>Anyone know how to get bold strings of text
  15. >>from a program (termcap related?)
  16. >>
  17. >>e.g.
  18. >>
  19. >>printf("\012 This is in bold \013\n");
  20. >>
  21. >>where \012 and \013 are whatever the magic ascii values 
  22. >>are to turn on and off bold. 
  23. >>
  24. >>~Matt
  25. >
  26. >I thought you'd just set whatever colour you wanted like this: 
  27. >
  28. >----cut-----------
  29. >  _textcolor(WHITE);                 /* Change from grey to white text */
  30. >  printf("This is highlighted...");  /* Print string to screen */
  31. >  _textcolor(GRAY);                  /* Revert back to dullish grey */
  32. >----cut-----------
  33. >
  34. >I pretty sure you have to include conio.h at the top of your program too.
  35. >
  36.  
  37. This *is* a troll isn't it?
  38.  
  39. John
  40.  
  41. -- 
  42. John Winters.  Wallingford, Oxon, England.
  43.